import BasicLayout from '@/layouts/basic-layout'

const meta = {
  auth: true
}

export default {
  path: '/supplier',
  name: 'supplier',
  redirect: {
    name: 'supplier'
  },
  meta,
  component: BasicLayout,
  children: [
    // 回访考察管理
    {
      path: 'returnVisteManage/visitRecordApproval',
      name: 'visitRecordApproval',
      meta: {
        auth: true, // 是否校验权限
        title: '来访记录待审批列表'
      },
      component: () => import('@/pages/supplier/management/visitRecordApproval')
    },
    {
      path: 'returnVisteManage/toInspectSupplierList',
      name: 'toInspectSupplier',
      meta: {
        auth: true,
        title: '待考察供应商列表'
      },
      component: () => import('@/pages/supplier/returnVisteManage/toInspectSupplierList')
    },
    {
      path: 'returnVisteManage/notInspectRecord',
      name: 'notInspectRecord',
      meta: {
        auth: true,
        title: '未考察记录列表'
      },
      component: () => import('@/pages/supplier/returnVisteManage/notInspectRecord')
    },
    {
      path: 'returnVisteManage/inspectionReport',
      name: 'inspectionReport',
      meta: {
        auth: true,
        title: '考察报告列表'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionReport')
    },
    {
      path: 'returnVisteManage/inspectionPlanManage',
      name: 'inspectionPlanManage',
      meta: {
        auth: true,
        title: '考察计划管理'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionPlanManage')
    },
    {
      path: 'returnVisteManage/inspectionPlanManage/addPlan',
      name: 'addPlan',
      meta: {
        auth: true,
        title: '新建计划'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionPlanManage/addPlan')
    },
    {
      path: 'returnVisteManage/inspectionPlanManage/addReport',
      name: 'addReport',
      meta: {
        auth: true,
        title: '录入考察报告'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionPlanManage/addReport')
    },
    {
      path: 'returnVisteManage/inspectionPlanManage/viewPlan',
      name: 'viewPlan',
      meta: {
        auth: true,
        title: '查看考察计划'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionPlanManage/viewPlan')
    },
    {
      path: 'returnVisteManage/inspectionPlanManage/viewReport',
      name: 'viewReport',
      meta: {
        auth: true,
        title: '查看考察报告'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionPlanManage/viewReport')
    },
    {
      path: 'returnVisteManage/visitRecord',
      name: 'visitRecord',
      meta: {
        auth: true,
        title: '供应商来访记录'
      },
      component: () => import('@/pages/supplier/returnVisteManage/visitRecord')
    },
    {
      path: 'returnVisteManage/visitRecord/add',
      name: 'addVisitRecord',
      meta: {
        auth: true,
        title: '新增供应商来访记录'
      },
      component: () => import('@/pages/supplier/returnVisteManage/visitRecord/add')
    },
    {
      path: 'returnVisteManage/visitRecord/view',
      name: 'visitRecordView',
      meta: {
        auth: true,
        title: '查看供应商来访记录'
      },
      component: () => import('@/pages/supplier/returnVisteManage/visitRecord/view')
    },
    // 数据统计查询
    {
      path: 'dataStatisticsQuery/purchaseStatistics',
      name: 'purchaseStatistics',
      meta: {
        auth: true,
        title: '进货额统计查询'
      },
      component: () => import('@/pages/supplier/dataStatisticsQuery/purchaseStatistics')
    },
    {
      path: 'dataStatisticsQuery/invoicingSupplier',
      name: 'invoicingSupplier',
      meta: {
        auth: true,
        title: '开票供应商查询'
      },
      component: () => import('@/pages/supplier/dataStatisticsQuery/invoicingSupplier')
    },
    {
      path: 'dataStatisticsQuery/supplierPersonnelInfo',
      name: 'supplierPersonnelInfo',
      meta: {
        auth: true,
        title: '供应商人员信息查询'
      },
      component: () => import('@/pages/supplier/dataStatisticsQuery/supplierPersonnelInfo')
    },
    {
      path: 'dataStatisticsQuery/collectionInfoUnbindingRecord',
      name: 'collectionInfoUnbindingRecord',
      meta: {
        auth: true,
        title: '收款信息解绑记录'
      },
      component: () => import('@/pages/supplier/dataStatisticsQuery/collectionInfo')
    },
    {
      path: 'dataStatisticsQuery/settlementMethodInfo',
      name: 'settlementMethodInfo',
      meta: {
        auth: true,
        title: '供应商结算方式查询'
      },
      component: () => import('@/pages/supplier/dataStatisticsQuery/settlementMethodInfo')
    },
    // 供应商管理
    {
      path: 'dataStatisticsQuery/enterpriseInfo',
      name: 'enterpriseInfo',
      meta: {
        auth: true,
        title: '企业信息查询'
      },
      component: () => import('@/pages/supplier/dataStatisticsQuery/enterpriseInfo')
    },
    // 供应商海量库
    {
      path: 'management/library',
      name: 'supplierLibrary',
      meta: {
        auth: true, // 是否校验权限
        title: '供应商海量库'
      },
      component: () => import('@/pages/supplier/management/library/index')
    },
    // 待审批列表
    {
      path: 'management/pendingApproval',
      name: 'pendingApprovalList',
      meta: {
        auth: true, // 是否校验权限
        title: '待审批列表'
      },
      component: () => import('@/pages/supplier/management/pendingApproval')
    },
    // 线索供应商
    {
      path: 'management/cluesSupplier',
      name: 'cluesSupplierList',
      meta: {
        auth: true, // 是否校验权限
        title: '线索供应商'
      },
      component: () => import('@/pages/supplier/management/cluesSupplier')
    },
    {
      path: 'management/cluesSupplier/add',
      name: 'addCluesSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '新增线索供应商'
      },
      component: () => import('@/pages/supplier/management/cluesSupplier/add')
    },
    {
      path: 'management/cluesSupplier/edit',
      name: 'editCluesSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '编辑线索供应商'
      },
      component: () => import('@/pages/supplier/management/cluesSupplier/edit')
    },
    {
      path: 'management/cluesSupplier/view',
      name: 'viewCluesSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '查看线索供应商'
      },
      component: () => import('@/pages/supplier/management/cluesSupplier/view')
    },
    {
      path: 'management/cluesSupplier/corvent2Potential',
      name: 'corventClues2Potential',
      meta: {
        auth: true, // 是否校验权限
        title: '线索供应商转化'
      },
      component: () => import('@/pages/supplier/management/cluesSupplier/corvent2Potential')
    },
    {
      path: 'management/cluesSupplier/corvent2Qualified',
      name: 'corventClues2Qualified',
      meta: {
        auth: true, // 是否校验权限
        title: '线索供应商转化'
      },
      component: () => import('@/pages/supplier/management/cluesSupplier/corvent2Qualified')
    },
    // 合格供应商
    {
      path: 'management/qualifiedSupplier',
      name: 'qualifiedSupplierList',
      meta: {
        auth: true, // 是否校验权限
        title: '合格供应商'
      },
      component: () => import('@/pages/supplier/management/qualifiedSupplier')
    },
    {
      path: 'management/qualifiedSupplier/add',
      name: 'addQualifiedSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '新增合格供应商'
      },
      component: () => import('@/pages/supplier/management/qualifiedSupplier/add')
    },
    {
      path: 'management/qualifiedSupplier/edit',
      name: 'editQualifiedSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '编辑合格供应商'
      },
      component: () => import('@/pages/supplier/management/qualifiedSupplier/edit')
    },
    {
      path: 'management/qualifiedSupplier/view',
      name: 'viewQualifiedSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '查看合格供应商'
      },
      component: () => import('@/pages/supplier/management/qualifiedSupplier/view')
    },
    // 潜在供应商
    {
      path: 'management/potentialSupplier',
      name: 'potentialSupplierList',
      meta: {
        auth: true, // 是否校验权限
        title: '潜在供应商'
      },
      component: () => import('@/pages/supplier/management/potentialSupplier')
    },
    {
      path: 'management/potentialSupplier/add',
      name: 'addPotentialSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '新增潜在供应商'
      },
      component: () => import('@/pages/supplier/management/potentialSupplier/add')
    },
    {
      path: 'management/potentialSupplier/edit',
      name: 'editPotentialSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '编辑潜在供应商'
      },
      component: () => import('@/pages/supplier/management/potentialSupplier/edit')
    },
    {
      path: 'management/potentialSupplier/view',
      name: 'viewPotentialSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '查看潜在供应商'
      },
      component: () => import('@/pages/supplier/management/potentialSupplier/view')
    },
    {
      path: 'management/invoicingSupplier',
      name: 'invoicingSupplierList',
      meta: {
        auth: true, // 是否校验权限
        title: '修改开票供应商名称列表'
      },
      component: () => import('@/pages/supplier/management/invoicingSupplier')
    },
    {
      path: 'management/invoicingSupplier/edit',
      name: 'editInvoicingSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '修改开票供应商名称'
      },
      component: () => import('@/pages/supplier/management/invoicingSupplier/editSupplierName')
    },
    {
      path: 'management/invoicingSupplier/bindRelationView',
      name: 'bindRelationView',
      meta: {
        auth: true, // 是否校验权限
        title: '开票供应商绑定关系'
      },
      component: () => import('@/pages/supplier/management/invoicingSupplier/bindRelationView')
    },
    {
      path: 'management/potentialSupplier/corvent2Qualified',
      name: 'corventPotential2Qualified',
      meta: {
        auth: true, // 是否校验权限
        title: '潜在供应商转化'
      },
      component: () => import('@/pages/supplier/management/potentialSupplier/corvent2Qualified')
    },
    // 特殊供应商
    {
      path: 'management/specialSupplier',
      name: 'specialSupplierList',
      meta: {
        auth: true, // 是否校验权限
        title: '特殊供应商'
      },
      component: () => import('@/pages/supplier/management/specialSupplier')
    },
    {
      path: 'management/specialSupplier/add',
      name: 'addSpecialSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '新增特殊供应商'
      },
      component: () => import('@/pages/supplier/management/specialSupplier/add')
    },
    {
      path: 'management/specialSupplier/edit',
      name: 'editSpecialSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '编辑特殊供应商'
      },
      component: () => import('@/pages/supplier/management/specialSupplier/edit')
    },
    {
      path: 'management/specialSupplier/view',
      name: 'viewSpecialSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '查看特殊供应商'
      },
      component: () => import('@/pages/supplier/management/specialSupplier/view')
    },
    // 供货商/承运商
    {
      path: 'management/supplierCarrier',
      name: 'supplierCarrierList',
      meta: {
        auth: true, // 是否校验权限
        title: '供货商/承运商'
      },
      component: () => import('@/pages/supplier/management/supplierCarrier')
    },
    {
      path: 'management/supplierCarrier/view',
      name: 'viewSupplierCarrierList',
      meta: {
        auth: true, // 是否校验权限
        title: '查看供货商/承运商'
      },
      component: () => import('@/pages/supplier/management/supplierCarrier/view')
    },
    // 淘汰供应商管理
    {
      path: 'management/eliminateSupplier',
      name: 'eliminateSupplierList',
      meta: {
        auth: true, // 是否校验权限
        title: '淘汰供应商管理'
      },
      component: () => import('@/pages/supplier/management/eliminateSupplier')
    },
    // 黑名单供应商
    {
      path: 'management/supplierBlacklist',
      name: 'supplierBlacklist',
      meta: {
        auth: true, // 是否校验权限
        title: '黑名单供应商'
      },
      component: () => import('@/pages/supplier/management/supplierBlacklist')
    },
    // 供应商账号管理
    {
      path: 'management/supplierAccount',
      name: 'supplierAccountList',
      meta: {
        auth: true, // 是否校验权限
        title: '供应商账号管理'
      },
      component: () => import('@/pages/supplier/management/supplierAccount')
    },
    // 供应商账号管理 - 开通账号
    {
      path: 'management/supplierAccount/openAccount',
      name: 'openAccount',
      meta: {
        auth: true, // 是否校验权限
        title: '开通账号'
      },
      component: () => import('@/pages/supplier/management/supplierAccount/openAccount')
    },
    // 供应商资质管理
    {
      path: 'management/supplierQualification',
      name: 'supplierQualificationList',
      meta: {
        auth: true, // 是否校验权限
        title: '供应商资质管理'
      },
      component: () => import('@/pages/supplier/management/supplierQualification')
    },
    // 临期资质管理
    {
      path: 'management/nearExpirationDateQualification',
      name: 'nearExpirationDateQualification',
      meta: {
        auth: true, // 是否校验权限
        title: '临期资质管理'
      },
      component: () => import('@/pages/supplier/management/nearExpirationDateQualification')
    },
    // 运费管理列表
    {
      path: 'management/freight',
      name: 'freightList',
      meta: {
        auth: true, // 是否校验权限
        title: '运费管理列表'
      },
      component: () => import('@/pages/supplier/management/freight')
    },
    {
      path: 'management/freight/add',
      name: 'addFreight',
      meta: {
        auth: true, // 是否校验权限
        title: '新增运费管理'
      },
      component: () => import('@/pages/supplier/management/freight/addFreight')
    },
    {
      path: 'management/freight/view',
      name: 'viewFreightDetail',
      meta: {
        auth: true, // 是否校验权限
        title: '查看运费管理'
      },
      component: () => import('@/pages/supplier/management/freight/viewFreight')
    },
    // 审批日志
    {
      path: 'audit/log',
      name: 'auditLog',
      meta: {
        auth: true, // 是否校验权限
        title: '审批日志'
      },
      component: () => import('@/pages/supplier/components/auditLog')
    },
    // 查看供应商
    {
      path: 'management/viewSupplier',
      name: 'viewSupplier',
      meta: {
        auth: true, // 是否校验权限
        title: '查看供应商'
      },
      component: () => import('@/pages/supplier/components/viewSupplier')
    },
    // 交接业务对接人
    {
      path: 'management/batchHandover',
      name: 'batchHandover',
      meta: {
        auth: true, // 是否校验权限
        title: '交接业务对接人'
      },
      component: () => import('@/pages/supplier/components/batchHandover')
    },
    // 核查管理
    // 核查审批跟进表
    {
      path: 'supervision/approval',
      name: 'supervisionApprovalList',
      meta: {
        auth: true, // 是否校验权限
        title: '核查审批跟进表'
      },
      component: () => import('@/pages/supplier/supervision/approval')
    },
    // 正常价格核查
    {
      path: 'supervision/regularPrice',
      name: 'regularPriceSupervisionList',
      meta: {
        auth: true, // 是否校验权限
        title: '正常价格核查'
      },
      component: () => import('@/pages/supplier/supervision/regularPrice')
    },
    {
      path: 'supervision/regularPrice/add',
      name: 'addRegularPriceSupervision',
      meta: {
        auth: true, // 是否校验权限
        title: '新建正常价格核查'
      },
      component: () => import('@/pages/supplier/supervision/regularPrice/add')
    },
    {
      path: 'supervision/regularPrice/edit',
      name: 'editRegularPriceSupervision',
      meta: {
        auth: true, // 是否校验权限
        title: '编辑正常价格核查'
      },
      component: () => import('@/pages/supplier/supervision/regularPrice/edit')
    },
    {
      path: 'supervision/regularPrice/view',
      name: 'viewRegularPriceSupervision',
      meta: {
        auth: true, // 是否校验权限
        title: '查看正常价格核查'
      },
      component: () => import('@/pages/supplier/supervision/regularPrice/view')
    },
    // 临采价格核查
    {
      path: 'supervision/tempPrice',
      name: 'tempPriceSupervisionList',
      meta: {
        auth: true, // 是否校验权限
        title: '临采价格核查'
      },
      component: () => import('@/pages/supplier/supervision/tempPrice')
    },
    {
      path: 'supervision/tempPrice/add',
      name: 'addTempPriceSupervision',
      meta: {
        auth: true, // 是否校验权限
        title: '新建临采价格核查'
      },
      component: () => import('@/pages/supplier/supervision/tempPrice/add')
    },
    {
      path: 'supervision/tempPrice/edit',
      name: 'editTempPriceSupervision',
      meta: {
        auth: true, // 是否校验权限
        title: '编辑临采价格核查'
      },
      component: () => import('@/pages/supplier/supervision/tempPrice/edit')
    },
    {
      path: 'supervision/tempPrice/view',
      name: 'viewTempPriceSupervision',
      meta: {
        auth: true, // 是否校验权限
        title: '查看临采价格核查'
      },
      component: () => import('@/pages/supplier/supervision/tempPrice/view')
    },
    // 监察核查
    {
      path: 'supervision/surveillance',
      name: 'supervisionSurveillanceList',
      meta: {
        auth: true, // 是否校验权限
        title: '监察核查'
      },
      component: () => import('@/pages/supplier/supervision/surveillance')
    },
    // 一进一出查询
    {
      path: 'supervision/oneInOut',
      name: 'supervisionOneInOutList',
      meta: {
        auth: true, // 是否校验权限
        title: '一进一出查询'
      },
      component: () => import('@/pages/supplier/supervision/oneInOut')
    },
    {
      path: 'supervision/checkPlanList',
      name: 'checkPlanList',
      meta: {
        auth: true, // 是否校验权限
        title: '核查计划列表'
      },
      component: () => import('@/pages/supplier/supervision/checkPlan')
    },
    {
      path: 'supervision/checkPlanList/add',
      name: 'addCheckPlan',
      meta: {
        auth: true, // 是否校验权限
        title: '新增核查计划'
      },
      component: () => import('@/pages/supplier/supervision/checkPlan/add')
    },
    {
      path: 'supervision/checkPlanList/view',
      name: 'viewCheckPlan',
      meta: {
        auth: true, // 是否校验权限
        title: '查看核查计划'
      },
      component: () => import('@/pages/supplier/supervision/checkPlan/view')
    },
    {
      path: 'supervision/toBeCheckList',
      name: 'toBeCheck',
      meta: {
        auth: true, // 是否校验权限
        title: '待核查列表'
      },
      component: () => import('@/pages/supplier/supervision/toBeCheck')
    },
    // 供应商协同
    {
      path: 'synergy/account',
      name: 'account',
      meta: {
        auth: true,
        title: '供应商账号管理'
      },
      component: () => import('@/pages/synergy/iframeContainer')
    },
    {
      path: 'synergy/setting',
      name: 'setting',
      meta: {
        auth: true,
        title: '供应商设置'
      },
      component: () => import('@/pages/synergy/iframeContainer')
    },
    {
      path: 'synergy/noticeManagement',
      name: 'noticeManagement',
      meta: {
        auth: true,
        title: '公告管理'
      },
      component: () => import('@/pages/synergy/iframeContainer')
    },
    {
      path: 'synergy/feedback',
      name: 'feedback',
      meta: {
        auth: false,
        title: '问题反馈'
      },
      component: () => import('@/pages/synergy/iframeContainer')
    },
    // 内部管理
    {
      path: 'innerManagement/qualifiedSupplierLevelChange',
      name: 'qualifiedLevelChange',
      meta: {
        auth: true,
        title: '合格供应商降级待办'
      },
      component: () => import('@/pages/supplier/innerManagement/qualifiedSupplierLevelChange')
    },
    // 内部管理
    {
      path: 'innerManagement/potentialSupplierLevelChange',
      name: 'potentialLevelChange',
      meta: {
        auth: true,
        title: '潜在供应商升降级待办'
      },
      component: () => import('@/pages/supplier/innerManagement/potentialSupplierLevelChange')
    },
    {
      path: 'innerManagement/arrivalTimeManagement',
      name: 'arrivalTimeManagement',
      meta: {
        auth: true,
        title: '到货时间管理'
      },
      component: () => import('@/pages/supplier/innerManagement/arrivalTimeManage')
    },
    // 供应商绩效
    {
      path: 'kpiManagement/rateSheet',
      name: 'rateSheet',
      meta: {
        auth: true,
        title: '供应商绩效评分表'
      },
      component: () => import('@/pages/supplier/kpiManage/rateSheet')
    },
    {
      path: 'kpiManagement/costControl',
      name: 'costControl',
      meta: {
        auth: true,
        title: '成本控制能力'
      },
      component: () => import('@/pages/supplier/kpiManage/costControl')
    },
    {
      path: 'kpiManagement/productDelivery',
      name: 'productDelivery',
      meta: {
        auth: true,
        title: '产品交付能力'
      },
      component: () => import('@/pages/supplier/kpiManage/productDelivery')
    },
    {
      path: 'kpiManagement/qualityControl',
      name: 'qualityControl',
      meta: {
        auth: true,
        title: '质量管控能力'
      },
      component: () => import('@/pages/supplier/kpiManage/qualityControl')
    },
    {
      path: 'kpiManagement/financial',
      name: 'financial',
      meta: {
        auth: true,
        title: '财务能力'
      },
      component: () => import('@/pages/supplier/kpiManage/financial')
    },
    {
      path: 'kpiManagement/serviceAbility',
      name: 'serviceAbility',
      meta: {
        auth: true,
        title: '服务能力'
      },
      component: () => import('@/pages/supplier/kpiManage/serviceAbility')
    },
    // 供应商合同管理
    {
      path: 'contract/supplierContract',
      name: 'contractList',
      meta: {
        auth: true, // 是否校验权限
        title: '供应商合同管理'
      },
      component: () => import('@/pages/supplier/contract/management')
    },
    {
      path: 'contract/noContractAuditList',
      name: 'noContractAuditList',
      meta: {
        auth: true, // 是否校验权限
        title: '不签合同待审核列表'
      },
      component: () => import('@/pages/supplier/contract/noContractAuditList')
    },
    {
      path: 'contract/noContractAuditList/view',
      name: 'viewRecordDetail',
      meta: {
        auth: true, // 是否校验权限
        title: '不签合同待审核单据详情'
      },
      component: () => import('@/pages/supplier/contract/noContractAuditList/view')
    },
    {
      path: 'contract/yearToDo',
      name: 'yearToDo',
      meta: {
        auth: true, // 是否校验权限
        title: '年度合同签订待办表'
      },
      component: () => import('@/pages/supplier/contract/yearToDo')
    },
    {
      path: 'contract/monthToDo',
      name: 'monthToDo',
      meta: {
        auth: true, // 是否校验权限
        title: '月度合同签订待办表'
      },
      component: () => import('@/pages/supplier/contract/monthToDo')
    },
    {
      path: 'returnVisteManage/inspectionReport/reportScoring',
      name: 'reportScoring',
      meta: {
        auth: true,
        title: '考察报告打分编辑'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionReport/reportScoring/edit')
    },
    {
      path: 'returnVisteManage/inspectionReport/reportScoringDetail',
      name: 'reportScoringDetail',
      meta: {
        auth: true,
        title: '考察报告打分查看'
      },
      component: () => import('@/pages/supplier/returnVisteManage/inspectionReport/reportScoring/view')
    },
  ]
}
